package com.wz.utils.batch.exception;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;

import java.sql.SQLException;

@Component
public class BaseException extends Throwable {
    public BaseException() {
    }
    @Autowired
    private JdbcTemplate jdbcTemplate;

    public BaseException(String s) throws SQLException {
//        System.out.println(s);
//        jdbcTemplate.getDataSource().getConnection().rollback();
    }
}
